package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CreditRecycleStationMapper;
import com.ruoyi.system.domain.CreditRecycleStation;
import com.ruoyi.system.service.ICreditRecycleStationService;

/**
 * 回收站点Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
@Service
public class CreditRecycleStationServiceImpl implements ICreditRecycleStationService
{
    @Autowired
    private CreditRecycleStationMapper creditRecycleStationMapper;

    /**
     * 查询回收站点
     * 
     * @param stationId 回收站点主键
     * @return 回收站点
     */
    @Override
    public CreditRecycleStation selectCreditRecycleStationByStationId(Long stationId)
    {
        return creditRecycleStationMapper.selectCreditRecycleStationByStationId(stationId);
    }

    /**
     * 查询回收站点列表
     * 
     * @param creditRecycleStation 回收站点
     * @return 回收站点
     */
    @Override
    public List<CreditRecycleStation> selectCreditRecycleStationList(CreditRecycleStation creditRecycleStation)
    {
        return creditRecycleStationMapper.selectCreditRecycleStationList(creditRecycleStation);
    }

    /**
     * 新增回收站点
     * 
     * @param creditRecycleStation 回收站点
     * @return 结果
     */
    @Override
    public int insertCreditRecycleStation(CreditRecycleStation creditRecycleStation)
    {
        return creditRecycleStationMapper.insertCreditRecycleStation(creditRecycleStation);
    }

    /**
     * 修改回收站点
     * 
     * @param creditRecycleStation 回收站点
     * @return 结果
     */
    @Override
    public int updateCreditRecycleStation(CreditRecycleStation creditRecycleStation)
    {
        return creditRecycleStationMapper.updateCreditRecycleStation(creditRecycleStation);
    }

    /**
     * 批量删除回收站点
     * 
     * @param stationIds 需要删除的回收站点主键
     * @return 结果
     */
    @Override
    public int deleteCreditRecycleStationByStationIds(Long[] stationIds)
    {
        return creditRecycleStationMapper.deleteCreditRecycleStationByStationIds(stationIds);
    }

    /**
     * 删除回收站点信息
     * 
     * @param stationId 回收站点主键
     * @return 结果
     */
    @Override
    public int deleteCreditRecycleStationByStationId(Long stationId)
    {
        return creditRecycleStationMapper.deleteCreditRecycleStationByStationId(stationId);
    }
} 